﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Peninsula.DataAccess.POCO
{
    [Table("Store")]
    public class Store:BaseEntity
    {
        [Required]
        [StringLength(50)]
        [DisplayName("店面名称")]
        public string Name { get; set; }

        [Required]
        [StringLength(50)]
        [DisplayName("店面详细地址")]
        public string Address { get; set; }

        [Required]
        [StringLength(50)]
        [DisplayName("店面联系人")]
        public string StoreCotactPeople { get; set; }


        [Required]
        [StringLength(50)]
        [DisplayName("店面联系方式")]
        [RegularExpression(@"^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$", ErrorMessage = "手机号码格式错误")]
        public string StoreTel { get; set; }

        [Required]
        [DisplayName("支付百分比")]
        public double Percenttage { get; set; }
    }
}
